package com.yuyu.demo.spring4.factory;

import com.yuyu.demo.spring4.beans.Car;

public class Factory {
	private static Car car;
	public static Car getCar(String name,Integer price) {
		car = new Car();
		car.setName(name);
		car.setPrice(price);
		return car;
	}
}
